package cn.tedu.inter;

/**
 * @author: Dsi
 * @date: 2021/11/11 11:42
 * @description:该类用于面向接口编程
 */
public class TestTeacherInter {
    public static void main(String[] args) {
        CGBTeacher c=new CGBTeacher();
        c.ready();
        c.teacher();
    }
}

interface Teacher{
    void teacher();
    void ready();
}
class CGBTeacher implements Teacher{
    @Override
    public void teacher() {
        System.out.println("授课电商");
    }
    @Override
    public void ready() {
        System.out.println("备课电商");
    }
}
abstract class SCDteacher implements Teacher{
    @Override
    public void ready() {
        System.out.println("备课加强");
    }
}